package com.xxiongb.business.repository.entity;

import java.util.Date;

import org.springframework.data.mongodb.core.mapping.Document;

//如果用户A向B说了话，但是B没有回复，服务器认为A有通话记录，但是B没有通话记录

@Document(collection="chat_user")
public class ChatUser {
	private String id;
	
	private String fromuserID;
	private String toUserID;
	private SimpleUser user;
	
	private Date chatDate;
	public String getFromuserID() {
		return fromuserID;
	}
	public void setFromuserID(String fromuserID) {
		this.fromuserID = fromuserID;
	}
	public String getToUserID() {
		return toUserID;
	}
	public void setToUserID(String toUserID) {
		this.toUserID = toUserID;
	}
	public SimpleUser getUser() {
		return user;
	}
	public void setUser(SimpleUser user) {
		this.user = user;
	}
	public Date getChatDate() {
		return chatDate;
	}
	public void setChatDate(Date chatDate) {
		this.chatDate = chatDate;
	}
	public String getId() {
		return id;
	}
	
	
}
